package test_public;

import junit.framework.Assert;

import org.junit.Test;

import datamodel.rucksack.Rucksack;
import datamodel.tree.TreeNode;
import datamodel.tree.TreeNodeFactory;
import datamodel.tree.linked.LinkedTree;

public class TreeNodeTest {

	@Test
	public void testEqualsObject() {
		TreeNode node0 = TreeNodeFactory.getNodeForTree(new LinkedTree(),
				new Rucksack(100));
		
		TreeNode node1 = TreeNodeFactory.getNodeForTree(new LinkedTree(),
				new Rucksack(100));
		
		Assert.assertTrue(node0.equals(node1));
	}

}
